#include<bits/stdc++.h>
using namespace std;
char a[1001],b[1001],ans[1001];
int getnum(char ch)
{
    return ch-'0';
}
int main()
{
    scanf("%s%s",a,b);
    memset(ans,0,sizeof(ans));
    int asize=strlen(a);
    int bsize=strlen(b);
    for (int i=0;i<bsize;i++)
    {
        int carry;
        for (int j=0;j<asize;j++)
        {
            int result=getnum(a[j])*getnum(b[i]);
            carry=result/10;
            ans[j]+=result%10;
            if(ans[j]>'9')
            {
                ans[j+1]+=getnum(ans[j]);
                ans[j]=getnum(ans[j])%10+'0';
            }
        }
    }
    int size=strlen(ans);
    for(int i=0;i<size;i++)
    {
        printf("%c",ans[i]);
    }
    system("pause");
    return 0;
}